package com.yzt.plugin_network.excep;

/**
 * author : bob
 * date   : 2022/11/29
 * desc   :
 */
public class HttpStatus {

    public static class ResponseStatus {

        public static final int STATUS_SUCCESS = 0; //成功

        public static final int NO_NETWORK = -100; //无网络

        public static final int NODATA = 101; //没有数据

        public static final int TOKEN_INVALID = 1001;//token过期

        public static final int VERIFICATION_INVALID = 109;//验证码错误

        public static final int TOKEN_NO = 401; //token失效

        public static final int PARAMETER_ERROR = 4010;//参数错误

        public static final int SYSTEM_ERROR = 5001;//系统异常

        public static final int ACCOUNT_NOT_OPEN = 4004; //账号尚未开通

        public static final int PWD_ERROR = 4008; //密码错误

        public static final int RLY_LOGIN_ERROR = -200; //容联云登录错误

        public static final int CLOSE_SERVICE_ERROR = 6003; //拨打电话后结束服务异常

        public static final int LOGOUT_CODE = 400401; //退出登录

        public static final int NOT_REGISTER = 302;//尚未注册
    }

    public static class HttpCode {

        public static final int REQUEST_SYNTAX = 400; //请求出现语法错误

        public static final int REQUEST_REFUSE = 401;//访问被拒绝

        public static final int REQUEST_FORBID = 403;//禁止访问

        public static final int ADDRESS_ERROR = 404;//你懂的

        public static final int ADDRESS_NOT_FOUNT = 405;//找不到

        public static final int TOKEN_INVALID = 406;//token过期

        public static final int SERVER_ERROR = 500;//服务器错误

        public static final int SERVER_NOT_HOLD = 501; //服务器不支持实现请求所需要的功能

        public static final int SERVER_GATEWAY_ERROR = 502;//服务器网管错误

        public static final int SERVER_MAINTAIN = 503; //服务器维护
    }

    public static class UnknownCode {

        public static final int SERVER_CALL_ERROR = 1000; //无法连接服务器

        public static final int UNKNOWN_ERROR = 1001; //请求数据失败,请稍后再试
    }
}
